package com.whz.workmanageol.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

/**
 * 作业保存路径
 * /teacherid/gradeid/courseid/seq/学号_姓名_seq.doc
 */
@Entity
public class Work implements Serializable {
    @Id
    private String id;
    @Column
    private String publishid;
    @Column
    private String studentid;
    @Column
    private String filepath;
    @Column
    private String filename;
    @Column
    private String suffix;
    @Column
    private Date studentsubdate;
    @Column
    private Date createdate;
    @Column
    private Date readdate;
    @Column
    private String score;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPublishid() {
        return publishid;
    }

    public void setPublishid(String publishid) {
        this.publishid = publishid;
    }

    public String getStudentid() {
        return studentid;
    }

    public void setStudentid(String studentid) {
        this.studentid = studentid;
    }

    public String getFilepath() {
        return filepath;
    }

    public void setFilepath(String filepath) {
        this.filepath = filepath;
    }

    public String getFilename() {
        return filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getSuffix() {
        return suffix;
    }

    public void setSuffix(String suffix) {
        this.suffix = suffix;
    }

    public Date getStudentsubdate() {
        return studentsubdate;
    }

    public void setStudentsubdate(Date studentsubdate) {
        this.studentsubdate = studentsubdate;
    }

    public Date getCreatedate() {
        return createdate;
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public Date getReaddate() {
        return readdate;
    }

    public void setReaddate(Date readdate) {
        this.readdate = readdate;
    }

    public String getScore() {
        return score;
    }

    public void setScore(String score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Work{" +
                "id='" + id + '\'' +
                ", publishid='" + publishid + '\'' +
                ", studentid='" + studentid + '\'' +
                ", filepath='" + filepath + '\'' +
                ", filename='" + filename + '\'' +
                ", suffix='" + suffix + '\'' +
                ", studentsubdate=" + studentsubdate +
                ", createdate=" + createdate +
                ", readdate=" + readdate +
                ", score='" + score + '\'' +
                '}';
    }
}
